package Leason3;

import java.util.Scanner;

public class fsfasafsdfsdfsf {

	public static void main(String[] args) {

				
				Scanner sc = new Scanner(System.in);
				int days;
				int date ;
				
				int[] january = new int [31] ;
				int[] february = new int [29];
				int[] marth = new int [31];
				int[] april = new int [30];
				int[] may = new int [31];
				int[] june = new int [30];
				int[] jule = new int [31];
				int[] august = new int [31];
				int[] september = new int [30];
				int[] october = new int [31];
				int[] november = new int [30];
				int[] decembre = new int [31];
				
				String dates = "";
				String month = "";
				String saveDates = "";
				
				int biggOff = 0;
				int bigSave = 0;
				
				
				System.out.println("How nany days you have day off on January");
				days = sc.nextInt();
				if (days > biggOff)
				{
					biggOff = days;
					month = "January";
					dates = " ";
				}
				else 
				{ 
					if ( days == biggOff)
					{	month += "; "+"January";
						dates += "; ";
						}
					else
					{ 
						dates = "";
						}
				}
				for(int i = 0; i < days; i++)
				{
					System.out.println("Witch are your days off on January: ");
					date = sc.nextInt();
					february[date-1] = 1;
					
					dates += date +  " ";
				}
				dates = saveDates;
				
				System.out.println("How nany days you have day off on February");
				days = sc.nextInt();
				if (days > biggOff)
				{
					biggOff = days;
					month = "February";
					dates = " ";
				}
				else 
				{ 
					if ( days == biggOff)
					{	month += "; "+"February";
						dates += "; ";
						}
					else
					{ 
						dates = "";
						}
				}
				for(int i = 0; i < days; i++)
				{
					System.out.println("Witch are your days off on February: ");
					date = sc.nextInt();
					february[date-1] = 1;
					
					dates += date +  " ";
				}
				dates = saveDates;

				System.out.println("How nany days you have day off on Marth");
				days = sc.nextInt();
				if (days > biggOff)
				{
					biggOff = days;
					month = "Marth";
					dates = " ";
				}
				else 
				{ 
					if ( days == biggOff)
					{	month += "; " + "Marth";
						dates +="; ";
						}
					else
						{ 
						dates = "";
						}
				}
				for(int i = 0; i < days; i++)
				{
					System.out.println("Witch is your " + (i+1) +". day off on Marth?" );
					date = sc.nextInt();
					january[date-1] = 1;
					
					dates += date + " ";
				}

				System.out.println("How nany days you have day off on April");
				days = sc.nextInt();
				if (days > biggOff)
				{
					biggOff = days;
					month = "April";
					dates = " ";
				}
				else 
				{ 
					if ( days == biggOff)
					{	month += "; " + "April";
						dates +="; ";
						}
					else
						{ 
						dates = "";
						}
				}
				for(int i = 0; i < days; i++)
				{
					System.out.println("Witch is your " + (i+1) +". day off on April?" );
					date = sc.nextInt();
					january[date-1] = 1;
					
					dates += date + " ";
				}
				System.out.println("How nany days you have day off on May");
				days = sc.nextInt();
				if (days > biggOff)
				{
					biggOff = days;
					month = "May";
					dates = " ";
				}
				else 
				{ 
					if ( days == biggOff)
					{	month += "; " + "May";
						dates +="; ";
						}
					else
						{ 
						dates = "";
						}
				}
				for(int i = 0; i < days; i++)
				{
					System.out.println("Witch is your " + (i+1) +". day off on May?" );
					date = sc.nextInt();
					january[date-1] = 1;
					
					dates += date + " ";
				}
				System.out.println("How nany days you have day off on June");
				days = sc.nextInt();
				if (days > biggOff)
				{
					biggOff = days;
					month = "June";
					dates = " ";
				}
				else 
				{ 
					if ( days == biggOff)
					{	month += "; " + "June";
						dates +="; ";
						}
					else
						{ 
						dates = "";
						}
				}
				for(int i = 0; i < days; i++)
				{
					System.out.println("Witch is your " + (i+1) +". day off on June?" );
					date = sc.nextInt();
					january[date-1] = 1;
					
					dates += date + " ";
				}
				System.out.println("How nany days you have day off on July");
				days = sc.nextInt();
				if (days > biggOff)
				{
					biggOff = days;
					month = "July";
					dates = " ";
				}
				else 
				{ 
					if ( days == biggOff)
					{	month += "; " + "July";
						dates +="; ";
						}
					else
						{ 
						dates = "";
						}
				}
				for(int i = 0; i < days; i++)
				{
					System.out.println("Witch is your " + (i+1) +". day off on July?" );
					date = sc.nextInt();
					january[date-1] = 1;
					
					dates += date + " ";
				}
				System.out.println("How nany days you have day off on August");
				days = sc.nextInt();
				if (days > biggOff)
				{
					biggOff = days;
					month = "August";
					dates = " ";
				}
				else 
				{ 
					if ( days == biggOff)
					{	month += "; " + "August";
						dates +="; ";
						}
					else
						{ 
						dates = "";
						}
				}
				for(int i = 0; i < days; i++)
				{
					System.out.println("Witch is your " + (i+1) +". day off on August?" );
					date = sc.nextInt();
					january[date-1] = 1;
					
					dates += date + " ";
				}
				System.out.println("How nany days you have day off on September");
				days = sc.nextInt();
				if (days > biggOff)
				{
					biggOff = days;
					month = "September";
					dates = " ";
				}
				else 
				{ 
					if ( days == biggOff)
					{	month += "; " + "September";
						dates +="; ";
						}
					else
						{ 
						dates = "";
						}
				}
				for(int i = 0; i < days; i++)
				{
					System.out.println("Witch is your " + (i+1) +". day off on September?" );
					date = sc.nextInt();
					january[date-1] = 1;
					
					dates += date + " ";
				}
				System.out.println("How nany days you have day off on October");
				days = sc.nextInt();
				if (days > biggOff)
				{
					biggOff = days;
					month = "October";
					dates = " ";
				}
				else 
				{ 
					if ( days == biggOff)
					{	month += "; " + "October";
						dates +="; ";
						}
					else
						{ 
						dates = "";
						}
				}
				for(int i = 0; i < days; i++)
				{
					System.out.println("Witch is your " + (i+1) +". day off on October?" );
					date = sc.nextInt();
					january[date-1] = 1;
					
					dates += date + " ";
				}
				System.out.println("How nany days you have day off on November");
				days = sc.nextInt();
				if (days > biggOff)
				{
					biggOff = days;
					month = "November";
					dates = " ";
				}
				else 
				{ 
					if ( days == biggOff)
					{	month += "; " + "November";
						dates +="; ";
						}
					else
						{ 
						dates = "";
						}
				}
				for(int i = 0; i < days; i++)
				{
					System.out.println("Witch is your " + (i+1) +". day off on November?" );
					date = sc.nextInt();
					january[date-1] = 1;
					
					dates += date + " ";
				}
				System.out.println("How nany days you have day off on December");
				days = sc.nextInt();
				if (days > biggOff)
				{
					biggOff = days;
					month = "December";
					dates = " ";
				}
				else 
				{ 
					if ( days == biggOff)
					{	month += "; " + "December";
						dates +="; ";
						}
					else
						{ 
						dates = "";
						}
				}
				for(int i = 0; i < days; i++)
				{
					System.out.println("Witch is your " + (i+1) +". day off on December?" );
					date = sc.nextInt();
					january[date-1] = 1;
					
					dates += date + " ";
				}

				
				System.out.println(month);
				System.out.println(saveDates);

				
				
		}
	}


